import request from '@/utils/request'

export function listWxMsg(query) {
  return request({
    url: '/wxmp/wxMsg/list',
    method: 'get',
    params: query
  })
}

export function getWxMsg(id) {
  return request({
    url: '/wxmp/wxMsg/' + id,
    method: 'get'
  })
}

export function addWxMsg(obj) {
  return request({
    url: '/wxmp/wxMsg',
    method: 'post',
    data: obj
  })
}

export function editWxMsg(obj) {
  return request({
    url: '/wxmp/wxMsg',
    method: 'put',
    data: obj
  })
}

export function delWxMsg(id) {
  return request({
    url: '/wxmp/wxMsg/' + id,
    method: 'delete'
  })
}

